package cn.zf233.jwtshiro.config.shiro.open;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * Created by zf233 on 2021/7/12
 */
public class OpenToken implements AuthenticationToken {

    private final String openId;

    public OpenToken(String token) {
        this.openId = token;
    }

    @Override
    public Object getPrincipal() {
        return openId;
    }

    @Override
    public Object getCredentials() {
        return openId;
    }
}
